x86 hvm: Remove vendor-specific feature masking of 0x1:ECX.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Aug 2009 12:16:50 +0000 (13:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Aug 2009 12:16:50 +0000 (13:16 +0100)
Vendors are respecting each others bits.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
tools/libxc/xc_cpuid_x86.c

index f9ef0de10b3574e06d1258f22378b61a1c22d887..f31066a4603b203798c13c563bb77a351260ee3a 100644 (file)
@@ -71,13 +71,6 @@ static void amd_xc_cpuid_policy(
 {
     switch ( input[0] )
     {
-    case 0x00000001:
-        /* Mask Intel-only features. */
-        regs[2] &= ~(bitmaskof(X86_FEATURE_SSSE3) |
-                     bitmaskof(X86_FEATURE_SSE4_1) |
-                     bitmaskof(X86_FEATURE_SSE4_2));
-        break;
-
     case 0x00000002:
     case 0x00000004:
         regs[0] = regs[1] = regs[2] = 0;
@@ -126,11 +119,6 @@ static void intel_xc_cpuid_policy(
 {
     switch ( input[0] )
     {
-    case 0x00000001:
-        /* Mask AMD-only features. */
-        regs[2] &= ~(bitmaskof(X86_FEATURE_POPCNT));
-        break;
-
     case 0x00000004:
         /*
          * EAX[31:26] is Maximum Cores Per Package (minus one).